﻿using System.Collections.Generic;

namespace DialogMachine
{
    public class Dialog
    {
        public List<Line> lines = new List<Line>();
    }

    public class Line
    {
        public readonly string line;
        public readonly string voicePath;
        public readonly string speakerName;
        public readonly int duration;

        public Line() { }

        /// <summary>
        /// A new line.
        /// </summary>
        /// <param name="line">The text content.</param>
        /// <param name="speakerName">The name of the speaker, usable for eg subs.</param>
        /// <param name="voicePath">The file path to a voice.</param>
        /// <param name="duration">The line's duration. Set it to zero to make the next line
        /// begin when the voice acting ends.</param>
        public Line(string line, string speakerName, string voicePath, int duration)
        {
            this.line = line;
            this.speakerName = speakerName;
            this.voicePath = voicePath;
            this.duration = duration;
        }
    }
}
